<?php


/**
 * 住友说
 * Class ListAction
 */
class CardListAction extends ActionPlugin
{
    public const USER_LEVEL = self::LEVEL_NOTHING;

    /**
     * @throws Exception
     */
    public function main()
    {
        $page = $this->getRequest()->getPost('page', 1);
        $storeId = $this->getPost('store_id', 0);
        $sort = $this->getPost('sort', 0); //排序 0默认 1最新
        $uid = $this->uid;

        $storeUid = \Biz\service\Store\StoreBasicService::getStoreUidById($storeId);

        $storeContent = new \Biz\service\Store\StoreContent($storeId);

        $response = $storeContent->hhzPagedList($uid, \Biz\model\store\MStoreContent::CONTENT_MODULE_USER, $page, 10, $sort, 'card_list');

        $this->setSuccess($response);
    }

}